/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.mailfolder;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.mailfolder.Mailbox;

/**
 * @author Administrator (email:xxh@163.com)
 * @since 2013-02-21
 */
public interface MailboxService {

    /****************************************
     * Insert a instace of Mailbox
     ****************************************/
    void insert(Mailbox mailbox) throws Exception;

    /****************************************
     * Insert instaces of Mailbox
     ****************************************/
    void batchInsert(Mailbox mailbox) throws Exception;

    /****************************************
     * Delete a instace of Mailbox
     ****************************************/
    void delete(Mailbox mailbox) throws Exception;

    /****************************************
     * Delete instaces of Mailbox
     ****************************************/
    void batchDelete(Mailbox mailbox) throws Exception;

    /****************************************
     * Update a instace of Mailbox
     ****************************************/
    void update(Mailbox mailbox) throws Exception;

    /****************************************
     * Update instaces of Mail
     ****************************************/
    void batchUpdate(Mailbox mailbox) throws Exception;

    /****************************************
     * Query instaces of Mailbox
     ****************************************/
    List<BaseModel> queryAsList(Mailbox mailbox) throws Exception;

    /****************************************
     * Query a instaces of Mailbox
     ****************************************/
    BaseModel queryAsObject(Mailbox mailbox) throws Exception;
}
